//
//  AddShopingCartModel.swift
//  koolcar
//
//  Created by kuaimaxiansheng on 2022/8/6.
//

import UIKit
import ObjectMapper
class AddShopingCartModel:  Mappable {
    var code: String?
    var msg: String?
    var data: AddCartDataModel?
    func mapping(map: Map) {
        code <- map["code"]
        msg <- map["msg"]
        data <- map["data"]
    }
    required init?(map: Map) {
    }
    
}

class AddCartDataModel:  Mappable {
    var cartKey: String?//购物车key
    var createdTime: String?
    var delFlag: Bool?
    var id: Int?
    
    var num: Int?//商品咋购物车的数量
    
    func mapping(map: Map) {
        cartKey <- map["cartKey"]
        createdTime <- map["createdTime"]
        delFlag <- map["delFlag"]
        id <- map["id"]
        num <- map["num"]
    }
    required init?(map: Map) {
    }
    
}
